package com.huihui.gmall.product.mapper;

import com.huihui.gmall.model.product.SpuSaleAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SpuSaleAttrMapper  extends BaseMapper<SpuSaleAttr> {
    /**
     * 根据spuId查询销售属性和销售属性值集合
     * @param spuId
     * @return
     */
    List<SpuSaleAttr> selectSpuSaleAttrList(Long spuId);
    /**
     * @description:根据spuId,skuId 获取销售属性数据
     * @author :又菜又爱玩的→速趴塞亚锦←
     * @create :2023/5/26
     * @param  :1.8
     */
    List<SpuSaleAttr> selectSpuSaleAttrListCheckBySku(@Param("skuId") Long skuId, @Param("spuId") Long spuId);
}
